//
//  MineSettingTableViewCell.swift
//  WalkerLove
//
//  Created by Boson on 2020/4/18.
//  Copyright © 2020 Carlson. All rights reserved.
//

import UIKit
import SnapKit
class MineSettingTableViewCell: UITableViewCell {

    var iconImageView : UIImageView?
    var titleLabel : UILabel?
    
//    required init(coder aDecoder: NSCoder) {
//        super.init(coder: aDecoder)
//    }
    
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    
    
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier:reuseIdentifier)
        
        self.setUpUI()
    }
    
    func setUpUI(){
        iconImageView = UIImageView()
        
        self.addSubview(iconImageView!)
        
        
        iconImageView?.snp.makeConstraints({ (make) in
            make.left.equalToSuperview()
            make.top.equalToSuperview()
            make.width.equalTo(60)
            make.bottom.equalToSuperview().offset(-10)
        })
        
        
        
        titleLabel = UILabel()
        self.addSubview(titleLabel!)
        
        titleLabel?.snp.makeConstraints({ (make) in
            make.left.equalTo(iconImageView!.snp.right).offset(15)
            make.right.equalToSuperview()
            make.centerX.equalToSuperview()
            make.height.equalToSuperview()
        })
        
        
    }
    
    

}
